package com.cyy.factory_pattern;

import com.cyy.factory_pattern.common.Nan;
import com.cyy.factory_pattern.common.Nv;
import com.cyy.factory_pattern.common.Ss;

/**
 * 普通工厂模式
 */
public class CommonDemo {
    public static void main(String[] args) {
        System.out.println("------------至阳之剑------------");
        //男铸剑师
        Nan nan = new Nan();
        Ss aa = nan.abc("长虹🗡");
        Ss dd = nan.abc("雨花🗡");
        Ss ee = nan.abc("青光🗡");
        Ss ff = nan.abc("奔雷🗡");
        Ss gg = nan.abc("旋风🗡");
        aa.show();
        dd.show();
        ee.show();
        ff.show();
        gg.show();
        System.out.println("-------------至阴之间------------");
        //女铸剑师
        Nv nv = new Nv();
        Ss bb = nv.abc("冰魄🗡");
        Ss cc = nv.abc("紫云🗡");
        bb.show();
        cc.show();
    }
}
